home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15678 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  914 b 

  1. Path: news.cern.ch!danpop
  2. From: danpop@mail.cern.ch (Dan Pop)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: What is wrong with this loop?
  5. Date: 21 Apr 96 02:50:07 GMT
  6. Organization: CERN European Lab for Particle Physics
  7. Message-ID: <danpop.830055007@news.cern.ch>
  8. References: <4l86la$1t9@uwm.edu> <4l8apa$kv8@spanky.pls.ov.com> <4lb6sj$c5c@abel.cc.sunysb.edu>
  9. NNTP-Posting-Host: ues5.cern.ch
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=US-ASCII
  12. Content-Transfer-Encoding: 7bit
  13. X-Newsreader: NN version 6.5.0 #18 (NOV)
  14.  
  15. In <4lb6sj$c5c@abel.cc.sunysb.edu> dkat@psych1.psy.sunysb.edu (DK) writes:
  16.  
  17.  
  18. >/* I assume you mean 
  19. >  while (cd != 'm' || cd != 'f' || cd != 'o')
  20. >/*try using gets(line) - it is always safer*/
  21.  
  22. Don't be silly, gets is _never_ safe.  Have a look at the FAQ to see why.
  23.  
  24. Dan
  25. --
  26. Dan Pop
  27. CERN, CN Division
  28. Email: danpop@mail.cern.ch 
  29. Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  30.